<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$info['id']?'编辑':'新增'}资产</h2>
    </div>
    <form action="__SELF__" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">资产编号<span class="check-tips">（编号）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="zcbh" value="{$info.zcbh}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">资产类别<span class="check-tips">（类别）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="zc_type" value="{$info.zc_type}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">资产名称<span class="check-tips">（名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value="{$info.name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">规格型号<span class="check-tips"> </span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="model" value="{$info.model}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">屏幕尺寸<span class="check-tips">（例如 5.8英寸）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="screen_size" value="{$info.screen_size}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">分辨率<span class="check-tips">（例如 1920x1080）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="screen_rate" value="{$info.screen_rate}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">系统<span class="check-tips">（版本）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="system" value="{$info.system}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">RAM容量<span class="check-tips">（例如 3G）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="ram" value="{$info.ram}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">核心数<span class="check-tips">（CPU核心数）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cpu_core" value="{$info.cpu_core}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">CPU<span class="check-tips">（CPU名称）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cpu_name" value="{$info.cpu_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">CPU频率<span class="check-tips">（主频）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cpu_rate" value="{$info.cpu_rate}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">CPU型号<span class="check-tips">（CPU型号）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="cpu_model" value="{$info.cpu_model}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">上市时间<span class="check-tips">（上市时间）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="market_time" value="{$info.market_time}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">MAC<span class="check-tips">（MAC地址）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="mac" value="{$info.mac}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">状态名称<span class="check-tips">（状态）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="now_status" value="{$info.now_status}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">中心部门<span class="check-tips">（中心部门）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="part_1" value="{$info.part_1}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">计提部门<span class="check-tips">（计提部门）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="part_2" value="{$info.part_2}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">使用部门<span class="check-tips">（使用部门）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="user_part" value="{$info.user_part}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">用户名称资产<span class="check-tips">（拥有人）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="user_name" value="{$info.user_name}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">购买价格<span class="check-tips">（价格）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="price" value="{$info.price}">
            </div>
        </div>
        <!--<div class="form-item">-->
            <!--<label class="item-label">使用人<span class="check-tips">（谁在使用）</span></label>-->
            <!--<div class="controls">-->
                <!--<input type="text" class="text input-large" name="username" value="">-->
            <!--</div>-->
        <!--</div>-->
        <div class="form-item">
            <label class="item-label">设备状态<span class="check-tips">（状态）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="device_status" value="{$info.device_status}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">外借使用者<span class="check-tips">（外借使用者）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="out_user" value="{$info.out_user}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">外借日期<span class="check-tips">（外借日期）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="out_date" value="{$info.out_date}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">归还日期<span class="check-tips">（归还日期）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="in_date" value="{$info.in_date}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">备注<span class="check-tips">（备注）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="remark" value="{$info.remark}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">设备类型<span class="check-tips">（安卓还是苹果设备）</span></label>
            <div class="controls">
                安卓<input type="radio" class=" radio" name="device_type" value="android" <eq name="info.device_type" value="android"> checked</eq>>
                苹果<input type="radio" class=" radio" name="device_type" value="ios" <eq name="info.device_type" value="ios"> checked</eq>>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">UDID<span class="check-tips">（备注）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="udid" value="{$info.udid}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">存储容量<span class="check-tips">（storage）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="storage" value="{$info.storage}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">显卡<span class="check-tips">（显卡芯片）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="xianka" value="{$info.xianka}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">现存系统<span class="check-tips">（目前设备系统）</span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="now_system" value="{$info.now_system}">
            </div>
        </div>





        <div class="form-item">
            <input type="hidden" name="id" value="{$info.id|default=''}">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        // Think.setValue("type", {$info.type|default=0});
        // Think.setValue("group", {$info.group|default=0});
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('User/index')}"]').closest('li').addClass('current');
    </script>
</block>
